//
//  TextView.swift
//  GoTravel
//
//  Created by lanou3g on 16/3/14.
//  Copyright © 2016年 SHH. All rights reserved.
//

import UIKit

class TextView: UIViewController {

    var textLabel:UILabel?
    
    var TString:String?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.textLabel = UILabel()
        self.textLabel?.frame = CGRectMake(0, 0, self.view.frame.width, self.view.frame.height)
        self.textLabel?.text = self.TString
        self.textLabel?.backgroundColor = UIColor.whiteColor()
        self.textLabel?.textAlignment = NSTextAlignment.Center
        self.textLabel?.numberOfLines = 0
        
        self.view.addSubview(self.textLabel!)
        
        
        
        // Do any additional setup after loading the view.
    }

    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        self.dismissViewControllerAnimated(true, completion: nil)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
